<div class="claro">
	<button data-dojo-type="dijit/form/Button" type="button" id="addId"
		onClick="addCDDialog();">Add</button>
	<button data-dojo-type="dijit/form/Button" type="button" id="editId"
		onClick="editCD();">Edit</button>
	<button data-dojo-type="dijit/form/Button" type="button" id="removeId"
		onClick="removeCD();">Delete</button>
</div>

<div class="claro" data-dojo-type="dijit.Dialog" id="CDDialog" title="Insert CD">
	<table>
		<tr>
			<td><label for="nameCD">Name:</label></td>
			<td></td>
			<td><input data-dojo-type="dijit.form.TextBox" type="text" name="nameCD" id="nameCD"/></td>
		</tr>
		<tr>
			<td><label for="producerCombo">Producer: </label></td>
			<td><button data-dojo-type="dijit/form/Button" type="button" id="insertProducer" class="addButtons" onClick="saveProducer(dijit.byId('producerCombo').displayedValue)"></button><td>
			<input data-dojo-type="dijit/form/FilteringSelect"	data-dojo-props="store:producerStore, searchAttr:'name'" id="producerCombo" 
			invalidMessage="Press add button to save producer"/>
		</tr>
		<tr>
			<td><label for="typeCombo">Type: </label></td>
			<td><button data-dojo-type="dijit/form/Button" type="button" id="insertType" class="addButtons" onClick="saveType(dijit.byId('typeCombo').displayedValue)"></button></td>
			<td><input data-dojo-type="dijit/form/FilteringSelect" data-dojo-props="store:typeStore, searchAttr:'type'" id="typeCombo"
			invalidMessage="Press add button to save type" /></td>
		</tr>
		<tr>
			<td><label for="date">Acquisition date: </label> </td>
			<td></td>
			<td><input data-dojo-type="dijit.form.DateTextBox" type="text" id="acquisitionDate" constraints="{datePattern:'dd.MM.yyyy', strict:true}"/></td>
		</tr>
	</table>
	<p>		
	<div>
		<button data-dojo-type="dijit/form/Button" type="button" onClick="submitDialogCD();">OK</button>
		<button data-dojo-type="dijit.form.Button" type="button" onClick="dijit.byId('CDDialog').hide();" id="closeDialog">Cancel</button>
	</div>
</div>
